package bud.taskmanager.user.dto;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * <pre>
 * 사용자 클래스
 * </pre>
 * 
 * @author YPJEON
 * 
 */
public class User {

	private int id;

	@NotEmpty
	private String login;

	@NotEmpty
	private String firstname;

	@NotEmpty
	private String lastname;

	@NotEmpty
	private String mail;

	@NotEmpty
	private String pswd;

	@NotEmpty
	private String pswdConfirm;

	private String createdOn;

	private String lastLoginOn;

	private int status;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getPswd() {
		return pswd;
	}

	public void setPswd(String pswd) {
		this.pswd = pswd;
	}

	public String getPswdConfirm() {
		return pswdConfirm;
	}

	public void setPswdConfirm(String pswdConfirm) {
		this.pswdConfirm = pswdConfirm;
	}

	public String getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(String createdOn) {
		this.createdOn = createdOn;
	}

	public String getLastLoginOn() {
		return lastLoginOn;
	}

	public void setLastLoginOn(String lastLoginOn) {
		this.lastLoginOn = lastLoginOn;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "User [login=" + login + ", firstname=" + firstname
				+ ", lastname=" + lastname + ", mail=" + mail + ", pswd="
				+ pswd + ", pswdConfirm=" + pswdConfirm + ", createdOn="
				+ createdOn + ", lastLoginOn=" + lastLoginOn + ", status="
				+ status + "]";
	}

}
